package com.bd.rj.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("post")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type =IdType.ASSIGN_ID)
    private Long id;

    /**
     * 发布人id
     */
    @TableField("uid")
    private Long uid;

    /**
     * 企业id
     */
    @TableField("eid")
    private Long eid;

    /**
     * 公司名称
     */
    @TableField("company")
    private String company;
    /**
     * 岗位名称
     */
    @TableField("postname")
    private String postname;

    /**
     * 岗位类型
     */
    @TableField("type")
    private String type;

    /**
     * 职位介绍
     */
    @TableField("introduction")
    private String introduction;

    /**
     * 待审核状态,0待审核
     */
    @TableField("status")
    private Integer status;
    /**
     * 公司网址
     */
    @TableField("url")
    private String url;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @TableField("createtime")
    private Date createtime;

    /**
     * 公司地址
     */
    @TableField("address")
    private String address;

    /**
     * 薪资
     */
    @TableField("salary")
    private String salary;

    /**
     * 学历
     */
    @TableField("degree")
    private String degree;

    /**
     * 退回理由
     */
    @TableField("reasons")
    private String reasons;

    @TableField(exist = false)
    private int interviewCount;
    public void setInterviewCount(int interviewCount) {
        this.interviewCount=interviewCount;
    }
}
